home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / vg-2.03 / image.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  1.0 KB  |  40 lines

  1. /*
  2.  * Copyright (C) 1990-1992 Michael Davidson.
  3.  * All rights reserved.
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software
  6.  * and its documentation for any purpose and without fee is hereby
  7.  * granted, provided that the above copyright notice appear in all
  8.  * copies and that both that copyright notice and this permission
  9.  * notice appear in supporting documentation.
  10.  *
  11.  * This software is provided "as is" without express or implied warranty.
  12.  */
  13.  
  14. #ifndef    IMAGE_H
  15. #define    IMAGE_H
  16.  
  17. struct    image
  18. {
  19.     int            width;
  20.     int            height;
  21.     int            depth;
  22.     int            bytes_per_pixel;
  23.     unsigned char    **pixels;
  24. };
  25.  
  26. typedef struct image    image_t;
  27.  
  28. extern int    imageInit();
  29. extern image_t    *imageStart(char *name, int w, int h, int d, int bg);
  30. extern int    imagePutPixels(int x, int y, void *p, int n);
  31. extern int    imagePutPixelsRGB(int x, int y, void *p, int n);
  32. extern int    imageEnd();
  33. extern int    imageGetKey(int delay);
  34. extern int    imageWarning(char *fmt, ...);
  35. extern int    imageError(char    *fmt, ...);
  36.  
  37. extern image_t    *Image;
  38.  
  39. #endif
  40.